package com.wanmait.bootdemo.exception;

public class CartypeNotFoundException extends Exception {

    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public CartypeNotFoundException(Integer id) {
        super("id为" + id + "的问题类型不存在");
        this.id = id;
    }

    public CartypeNotFoundException(Integer id, String message) {
        super(message);
        this.id = id;
    }
}
